package com.njh.charges.config;

import lombok.Data;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 配置文件读取
 *
 */
@Configuration
@Data
@Component
public class AlipayConfig {

    /**
     * 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
     */
    private String appId = "9021000133635919";

    /**
     * 商户私钥，您的PKCS8格式RSA2私钥
     */
    private String privateKey = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC6fbgLqu+8dRRfNBP5J3Ouy7LaFwZMdxpaDJX0GIr0XvtoUaaNj53Wk4sIECk8KGUgYJAqUwRGZwg/qC4wnnhH3buK0cCXYa6JsvrQoJNzJKdZWus6+pvy/5nk7PoD1YfRI1NckquYjrwhfmqMlsBmvm9tpmCzok40XRWxijJ/02oJw2S7L28qGK5B3LdU8tNkTAbIKY3Kq7DQRvT9KRSm81Bp/ptLSckdtKAJnD5lYghHxbi9Y/jjfx64Ybp755R4s1vyYBiksyLuI2nSOQmu+Tg1Tf8Rc1T0d2cfNTXu4aem1rWGSwDpf2SCUFwO8QZyN07SOLSpCQM/Mj3ZWL1rAgMBAAECggEAXqq65pFbKRt1v+47xVqVisG0hKjzdZVwNw30gPiEcRBWJtpr5ahlwysahHlPtU38J7dc91806FgdA9Nnvx5yiGiybwGS9kWLyDKmx4j70JNmsCFLD6Fv0KaXhHIXaCLY0v1Pr8p0ePjb31TA2aUc/grlnY+7vvRBJqup+3nfsKrNGFpPYJahrkUQSdCR4scvufQsXGHDV7fEEuerUe+Xx9aAz6NY8m5kim1N7jBHLOLhHTZjVSYHpD2XEiKQZYIP3YfyCefAlCz63OCCiCTrKnBOLNHXcn10YEpTjBnOj0QsE46JGlRKbvuPasdC3W67f2IsJ/hqspRbPCtv35kYoQKBgQD8pE8Q9WLcBu26K6/PcoOTILnnAt6vjtdwHm/1sJtxAr48hOk+3LjaRhfpW5Rk702Y+yG52dO2sjhRAiAd5KhQsdRJdUjGLY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x3Ng7EwSvktn8pKqZrDsdMgz5aPdRecr9F3mdHTadsL0O0Fvdw9jG2Hvg7w6SkEwVOQYLDN3ZeeFc/PxgFS+7JBjXssqXWC6GvqA6jGnHUdr3Juac8objkC5jAwwIDAQAB";

    /**
     * 服务器异步通知页面路径需http://格式的完整路径，不能加?id=123这类自定义参数
     */
    private String notifyUrl = "http://x7wakb.natappfree.cc/charges/api/pay/AliPayAsyncHandle";

    /**
     * 页面跳转同步通知页面路径 需http://格式的完整路径.
     * 支付完成后返回的地址
     */
    private String returnUrl = "http://192.168.1.26:8080/#/charge/docharge?id=123456";

    /**
     * 签名方式
     */
    private String signType = "RSA2";

    /**
     * 字符编码格式
     */
    private String charset = "utf-8";

    /**
     * 支付宝网关
     */
    private String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";

    /**
     * 支付宝网关
     */
    private String logPath = "D:\\AlipayLog";
}

